<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
  Inherits="System.Web.Mvc.ViewPage<Sedodream.Web.ViewHelper.Models.AddContactModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  Add Contact Classic
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <h2>Add Contact Classic</h2>
  <%= Html.ValidationSummary("Errors exist") %>
  
  <ol>
    <li>
      <span class="success-message"><%= Model.SuccessMessage %></span>
      </li>
  </ol>
  <% using (Html.BeginForm())
     { %>
      <fieldset>
        <legend>Account Information</legend>
        <ol>
          <li>
            <label for="FirstName">First name</label>
            <%= Html.TextBox("FirstName") %>
            <%= Html.ValidationMessage("FirstName", "*") %>
          </li>
          <li>
            <label for="LastName">Last name</label>
            <%= Html.TextBox("LastName") %>
            <%= Html.ValidationMessage("LastName", "*") %>
          </li>
          <li>
            <label for="Email">Email</label>
            <%= Html.TextBox("Email")%>
            <%= Html.ValidationMessage("Email", "*")%>
          </li>
          <li>
            <label for="Phone">Phone</label>
            <%= Html.TextBox("Phone")%>
            <%= Html.ValidationMessage("Phone", "*")%>
          </li>
          <li>
            <div class="option-group" id="GenderContainer">
              <label for="Gender">Gender</label>
              <% foreach (SelectListItem item in Model.GenderList)
                 { %>
                   <%= Html.RadioButton(item.Text, item.Value)%>
                   <span><%= item.Text%></span>
              <% } %>
            </div>
          </li>
          
          <li>
            <input type="submit" value="Add contact" />
          </li>
        </ol>
      </fieldset>
  <% } %>
</asp:Content>
